
class InterfaceItemModelData {

  int? id;
  String? menuName;
  String? name;
  String? path;
  int? author;
  int? method;
  String? methodStr;
  int? status;
  String? statusStr;

  InterfaceItemModelData({
    this.id,
    this.menuName,
    this.name,
    this.path,
    this.author,
    this.method,
    this.methodStr,
    this.status,
    this.statusStr,

  });
  InterfaceItemModelData.fromJson(Map<String, dynamic> json) {
    id = json['id']?.toInt();
    menuName = json['menu_name']?.toString();
    name = json['name']?.toString();
    path = json['path']?.toString();
    author = json['author']?.toInt();
    method = json['method']?.toInt();
    methodStr = json['method_str']?.toString();
    status = json['status']?.toInt();
    statusStr = json['status_str']?.toString();
  }
  
  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['id'] = id;
    data['menu_name'] = menuName;
    data['name'] = name;
    data['path'] = path;
    data['author'] = author;
    data['method'] = method;
    data['method_str'] = methodStr;
    data['status'] = status;
    data['status_str'] = statusStr;
    return data;
  }
}

class InterfaceModelData {

  int? limit;
  List<InterfaceItemModelData?>? items;
  int? total;

  InterfaceModelData({
    this.limit,
    this.items,
    this.total,
  });
  InterfaceModelData.fromJson(Map<String, dynamic> json) {
    limit = json['limit']?.toInt();
  if (json['items'] != null) {
  final v = json['items'];
  final arr0 = <InterfaceItemModelData>[];
  v.forEach((v) {
  arr0.add(InterfaceItemModelData.fromJson(v));
  });
    items = arr0;
    }
    total = json['total']?.toInt();
  }
  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['limit'] = limit;
    if (items != null) {
      final v = items;
      final arr0 = [];
  v!.forEach((v) {
  arr0.add(v!.toJson());
  });
      data['items'] = arr0;
    }
    data['total'] = total;
    return data;
  }
}

class InterfaceModel {
  int? code;
  InterfaceModelData? data;
  String? message;

  InterfaceModel({
    this.code,
    this.data,
    this.message,
  });
  InterfaceModel.fromJson(Map<String, dynamic> json) {
    code = json['code']?.toInt();
    data = (json['data'] != null) ? InterfaceModelData.fromJson(json['data']) : null;
    message = json['message']?.toString();
  }
  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['code'] = code;
    if (data != null) {
      data['data'] = this.data!.toJson();
    }
    data['message'] = message;
    return data;
  }
}
